FUNCTION
check_multi_sig_auth
function check_multi_sig_auth(args: byte_array, signers: list<byte_array>, required_flags: list<text>): validation_resultChecks that the multi-sig auth descriptor has all the requirements to authorize an operation.
Can only be called from an operation.
Gives invalid result "NOT ENOUGH SIGNATURES" if not enough signers signed the
operation that called this function.
Gives invalid result "MISSING FLAGS" if the multi_sig_args does not contain
all required flags.
Parameters
- args — The args for this auth descriptor. Expected to be a gtv encoded version of the
multi_sig_argsstruct. - signers — The signers for this auth descriptor. Expected to be a list containing one or more pubkeys and/or EVM addresses (without
0x) - required_flags — The flags it must have for the operation that needs to be authorized.
Returns
utils.VALID if valid, utils.invalid otherwise.
© 2024 Chromia